﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Web1.aspx.cs" Inherits="WebApplication1.Web1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server" action="Web2.aspx">
        <div>
            用户名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br/>
            密码：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br/>
            <asp:Button ID="Button1" runat="server" Text="登录Post" PostBackUrl="~/Web2.aspx" />&nbsp;<asp:Button ID="Button2" runat="server" Text="登录Get" OnClick="Button2_Click" />
            <a href="Web2.aspx?n=张三&p=123">跳转到页面2</a>
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Web22.aspx?n=令狐冲&p=321">跳转到Web2.aspx</asp:HyperLink>

        </div>
    </form>
</body>
</html>
